package com.example.service;

import com.example.entity.User;
import com.example.vo.UserVo;
import org.springframework.security.core.Authentication;
import reactor.core.publisher.Mono;

public interface UserService extends BaseReactiveService<User> {

    Mono<UserVo> login(Authentication authentication);

    Mono<User> findByUsername(String username);

    Mono<Boolean> exit(String username);

    Mono<Void> create(UserVo userVo);
}
